﻿using System.Runtime.Serialization;

namespace UpYourLife.Services.Google
{
    /// <summary>
    /// A set of cursor information returned with a set of Google web search results.
    /// </summary>
    [DataContract]
    public class GoogleCursor
    {
        /// <summary>
        /// The estimated number of search results.
        /// </summary>
        [DataMember(Name = "estimatedResultCount")]
        public int EstimatesResultsCount
        { get; set; }

        /// <summary>
        /// The page index for these results.
        /// </summary>
        [DataMember(Name = "currentPageIndex")]
        public int CurrentPageIndex
        { get; set; }

        /// <summary>
        /// The Url for the next set of search results.
        /// </summary>
        [DataMember(Name = "moreResultsUrl")]
        public string MoreResultsUrl
        { get; set; }

        /// <summary>
        /// The set of pages associated with this cursor.
        /// </summary>
        [DataMember(Name = "pages")]
        public GoogleCursorPage[] Pages
        { get; set; }


    }
}
